﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RegistrationDate
{
    public class AESModel
    {
        /// <summary>
        /// 加密与解密需要用到的密码
        /// </summary>
        static string Key = "@*nirenjaunt..,,";

        /// <summary>
        /// AES加密
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        static public string AESEncrypt(string str) {
            return AESHelper.AESEncrypt(str, Key);
        }

        /// <summary>
        /// AES解密
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        static public string AESDecrypt(string str) {
            return AESHelper.AESDecrypt(str, Key);
        }

    }
}
